Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ibc-core): copy substitute consensus state during client recovery #1197

Merged
merged 17 commits into from
Apr 26, 2024

Conversation

seanchen1991
Copy link
Contributor

@seanchen1991 seanchen1991 commented Apr 25, 2024

Closes: #1196

Description


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests.
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@seanchen1991 seanchen1991 requested a review from rnbguy April 25, 2024 16:05
Copy link

codecov bot commented Apr 25, 2024

Codecov Report

Attention: Patch coverage is 97.91667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 64.41%. Comparing base (23b26bb) to head (dda0187).

❗ Current head dda0187 differs from pull request most recent head 6f52da0. Consider uploading reports for the commit 6f52da0 to get more accurate results

Files Patch % Lines
...stkit/src/testapp/ibc/clients/mock/client_state.rs 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1197      +/-   ##
==========================================
+ Coverage   64.33%   64.41%   +0.07%     
==========================================
  Files         229      230       +1     
  Lines       22083    22112      +29     
==========================================
+ Hits        14208    14243      +35     
+ Misses       7875     7869       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seanchen1991 seanchen1991 marked this pull request as ready for review April 25, 2024 16:39
@rnbguy rnbguy force-pushed the sean/fix/client-recovery-consensus branch from b93b3c3 to 6f52da0 Compare April 26, 2024 11:38
@rnbguy rnbguy changed the title Pass substitute consensus state into client recovery methods fix(ibc-core): copy substitute consensus state during client recovery Apr 26, 2024
Copy link
Collaborator

@rnbguy rnbguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

The e2e tests at basecoin side are passing 🚀

@seanchen1991 seanchen1991 added this pull request to the merge queue Apr 26, 2024
Merged via the queue into main with commit cdf6cf5 Apr 26, 2024
34 of 35 checks passed
@seanchen1991 seanchen1991 deleted the sean/fix/client-recovery-consensus branch April 26, 2024 13:56
Farhad-Shabani pushed a commit that referenced this pull request Sep 9, 2024
…#1197)

* Pass substitute consensus state into client recovery methods

* Fix update_on_recovery call in ibc-clients/cw-context

* refactor encode_vec to into_any

* consume new_client_state later

* update ibc_derive

* update mock client state

* cargo format

* Change `use` statement formatting

* add store_update_meta at MockClientState::initialise

* consistent naming

* Remove `into_any` trait methods

* rm ConsensusState::into_any from ibc-derive

* test consensus state recovery

* link on doc strings

---------

Co-authored-by: Ranadeep Biswas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(ibc-core): client recovery logic does not copy the substitute client's consensus state
2 participants